
// PlayerMainWindowDlg.h : header file
//

#pragma once
#include "playerctrl.h"
#include "afxvslistbox.h"
#include "afxwin.h"
#include "PlaylistBox.h"

// CPlayerMainWindowDlg dialog
class CPlayerMainWindowDlg : public CDialogEx
{
// Construction
public:
	CPlayerMainWindowDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_PLAYERMAINWINDOW_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
	afx_msg void OnMenuExit();
	afx_msg void OnMenuOpen();
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

	CMenu m_wndMenu;
	CPlayerctrl m_ActiveXPlayer;
	virtual void OnOK();
	virtual void OnCancel();
	DECLARE_EVENTSINK_MAP()
	void OnNextTrackPlayer();
	afx_msg void OnClose();
	CPlaylistBox m_Playlist;
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	CStatic m_Bar;
	void OnDelPlaylistPlayer();
	void OnAddFilePlayer(BSTR* FileName);
	CBitmapButton m_ButtonRandom;
	CBitmapButton m_ButtonRepeat;
	CBitmapButton m_ButtonRemove;
	afx_msg void OnBnClickedButton4();
	void OnPreviousTrackPlayer();
};
